<?php

namespace app\admin\controller\vv;

use app\common\controller\Backend;
use think\Console;

class PayedAfter extends Backend
{
    protected $noNeedRight = 'index';

    public function index()
    {
        $order_id = input('order_id');
        if (!$order_id) {
            $this->error('order_id不能是空的');
        }
        $str = Console::call('exec_listener_order_payed_after', [$order_id])->fetch();
        if ($str !== 'ok') {
            $this->error($str);
        }
        $this->success();
    }
}